package com.developmentReformProject.enums;

public enum EnterpriseEnum {
    NORMAL(1,"正常"),
    ISDELETE(0,"已删除");

    private Integer value;
    private String description;

    public int getValue() {
        return value;
    }
    public String getDescription() {
        return description;
    }

    EnterpriseEnum(int value, String description){
        this.value=value;
        this.description=description;
    }

    public static String valueToDESC(int value){
        for(EnterpriseEnum enterpriseStateEnum: EnterpriseEnum.values()){
            if(value==enterpriseStateEnum.getValue()){
                return enterpriseStateEnum.getDescription();
            }
        }
        return null;
    }
}
